﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WF.BeOnDuty.BeOnDuty
{
    public interface IDutyFieldRepository
    {

        Task<Models.DutyField> GetAsync(int siteId, int id);

        Task<int> InsertAsync(Models.DutyField model);

        Task<bool> UpdateAsync(Models.DutyField model);

        Task<bool> DeleteAsync(int siteId, int id);



        Task<List<Models.DutyField>> GetAllAsync(int siteId);
        Task<int> GetCountAsync(int siteId);


        Task<List<Models.DutyField>> GetPageAsync(int siteId, int page, int perPage = 15);
    }
}
